// 下划线转驼峰
module.exports.toHump = (array) => {
	let toHump = (key) => {
		return key.replace(/\_(\w)/g, function (all, letter) {
			return letter.toUpperCase();
		})
	}
	let tempArray = []
	for (let i of array) {
		let obj = {}
		for (let j of Object.keys(i)) {
			obj[toHump(j)] = i[j]
		}
		tempArray.push(obj)
	}
	return tempArray
}
